package cn.edu.cqut.mdm.core.publisherdispatcher;

import cn.edu.cqut.mdm.core.dispatcher.Dispatcher;
import cn.edu.cqut.mdm.core.dispatcher.LocalDispatcher;
import cn.edu.cqut.mdm.core.publish.Publisher;
import cn.edu.cqut.mdm.core.publish.local.LocalPublisher;

public class LocalPublisherDispatcher implements PublisherDispatcher {
	private static final String NAME = "local";
	
	private Publisher publisher = new LocalPublisher();
	private Dispatcher dispatcher = LocalDispatcher.getLocalDispatcher();
	
	public Publisher getPublisher() {
		return publisher;
	}
	public Dispatcher getDispatcher() {
		return dispatcher;
	}

	public String getName() {
		return NAME;
	}
}
